package easystudy.database;

import javax.servlet.http.HttpServletRequest;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.servlet.ModelAndView;

import easystudy.dao.BoardDao;

@Controller
public class GetDbListController {

	private BoardDao boardDao;
	
	public void setBoardDao(BoardDao boardDao){
		this.boardDao = boardDao;
	}
	
	@RequestMapping(value="db_list.db")
	protected ModelAndView getDbListProcess(@RequestParam("page")int page, HttpServletRequest request){
		ModelAndView mav = new ModelAndView();
		mav.setViewName("db_list");
		mav.addObject("current",page);
		return mav;
	}
	
}
